import React from "react";
import ReactDOM, { createRoot } from "react-dom/client";
import App from "./App";
// antd v5 兼容 react 19
import "@ant-design/v5-patch-for-react-19";

import { BrowserRouter } from "react-router";

import RouterComponent from "./Router";

const root = document.getElementById("root");
if (root) {
  // createRoot(root).render(<App />);
  ReactDOM.createRoot(root).render(
    <>
      {/* <App /> */}
      <RouterComponent />
    </>
  );
}
